package pe.com.bn.sach.domain;

import java.util.Date;

/**
 * Bnhbf04ServCuentaId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnhbf04ServCuentaId implements java.io.Serializable {

	// Fields

	private Bnhbf03Servicio bnhbf03Servicio;
	private Bnhbf02Cuenta bnhbf02Cuenta;
	private Long f04Estdo;
	private String f04IdUsuaCrea;
	private Date f04FeUsuaCrea;
	private String f04IdUsuaModi;
	private Date f04FeUsuaModi;

	// Constructors

	/** default constructor */
	public Bnhbf04ServCuentaId() {
	}

	/** minimal constructor */
	public Bnhbf04ServCuentaId(Bnhbf03Servicio bnhbf03Servicio,
			Bnhbf02Cuenta bnhbf02Cuenta, Long f04Estdo, String f04IdUsuaCrea,
			Date f04FeUsuaCrea) {
		this.bnhbf03Servicio = bnhbf03Servicio;
		this.bnhbf02Cuenta = bnhbf02Cuenta;
		this.f04Estdo = f04Estdo;
		this.f04IdUsuaCrea = f04IdUsuaCrea;
		this.f04FeUsuaCrea = f04FeUsuaCrea;
	}

	/** full constructor */
	public Bnhbf04ServCuentaId(Bnhbf03Servicio bnhbf03Servicio,
			Bnhbf02Cuenta bnhbf02Cuenta, Long f04Estdo, String f04IdUsuaCrea,
			Date f04FeUsuaCrea, String f04IdUsuaModi, Date f04FeUsuaModi) {
		this.bnhbf03Servicio = bnhbf03Servicio;
		this.bnhbf02Cuenta = bnhbf02Cuenta;
		this.f04Estdo = f04Estdo;
		this.f04IdUsuaCrea = f04IdUsuaCrea;
		this.f04FeUsuaCrea = f04FeUsuaCrea;
		this.f04IdUsuaModi = f04IdUsuaModi;
		this.f04FeUsuaModi = f04FeUsuaModi;
	}

	// Property accessors

	public Bnhbf03Servicio getBnhbf03Servicio() {
		return this.bnhbf03Servicio;
	}

	public void setBnhbf03Servicio(Bnhbf03Servicio bnhbf03Servicio) {
		this.bnhbf03Servicio = bnhbf03Servicio;
	}

	public Bnhbf02Cuenta getBnhbf02Cuenta() {
		return this.bnhbf02Cuenta;
	}

	public void setBnhbf02Cuenta(Bnhbf02Cuenta bnhbf02Cuenta) {
		this.bnhbf02Cuenta = bnhbf02Cuenta;
	}

	public Long getF04Estdo() {
		return this.f04Estdo;
	}

	public void setF04Estdo(Long f04Estdo) {
		this.f04Estdo = f04Estdo;
	}

	public String getF04IdUsuaCrea() {
		return this.f04IdUsuaCrea;
	}

	public void setF04IdUsuaCrea(String f04IdUsuaCrea) {
		this.f04IdUsuaCrea = f04IdUsuaCrea;
	}

	public Date getF04FeUsuaCrea() {
		return this.f04FeUsuaCrea;
	}

	public void setF04FeUsuaCrea(Date f04FeUsuaCrea) {
		this.f04FeUsuaCrea = f04FeUsuaCrea;
	}

	public String getF04IdUsuaModi() {
		return this.f04IdUsuaModi;
	}

	public void setF04IdUsuaModi(String f04IdUsuaModi) {
		this.f04IdUsuaModi = f04IdUsuaModi;
	}

	public Date getF04FeUsuaModi() {
		return this.f04FeUsuaModi;
	}

	public void setF04FeUsuaModi(Date f04FeUsuaModi) {
		this.f04FeUsuaModi = f04FeUsuaModi;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnhbf04ServCuentaId))
			return false;
		Bnhbf04ServCuentaId castOther = (Bnhbf04ServCuentaId) other;

		return ((this.getBnhbf03Servicio() == castOther.getBnhbf03Servicio()) || (this
				.getBnhbf03Servicio() != null
				&& castOther.getBnhbf03Servicio() != null && this
				.getBnhbf03Servicio().equals(castOther.getBnhbf03Servicio())))
				&& ((this.getBnhbf02Cuenta() == castOther.getBnhbf02Cuenta()) || (this
						.getBnhbf02Cuenta() != null
						&& castOther.getBnhbf02Cuenta() != null && this
						.getBnhbf02Cuenta()
						.equals(castOther.getBnhbf02Cuenta())))
				&& ((this.getF04Estdo() == castOther.getF04Estdo()) || (this
						.getF04Estdo() != null
						&& castOther.getF04Estdo() != null && this
						.getF04Estdo().equals(castOther.getF04Estdo())))
				&& ((this.getF04IdUsuaCrea() == castOther.getF04IdUsuaCrea()) || (this
						.getF04IdUsuaCrea() != null
						&& castOther.getF04IdUsuaCrea() != null && this
						.getF04IdUsuaCrea()
						.equals(castOther.getF04IdUsuaCrea())))
				&& ((this.getF04FeUsuaCrea() == castOther.getF04FeUsuaCrea()) || (this
						.getF04FeUsuaCrea() != null
						&& castOther.getF04FeUsuaCrea() != null && this
						.getF04FeUsuaCrea()
						.equals(castOther.getF04FeUsuaCrea())))
				&& ((this.getF04IdUsuaModi() == castOther.getF04IdUsuaModi()) || (this
						.getF04IdUsuaModi() != null
						&& castOther.getF04IdUsuaModi() != null && this
						.getF04IdUsuaModi()
						.equals(castOther.getF04IdUsuaModi())))
				&& ((this.getF04FeUsuaModi() == castOther.getF04FeUsuaModi()) || (this
						.getF04FeUsuaModi() != null
						&& castOther.getF04FeUsuaModi() != null && this
						.getF04FeUsuaModi()
						.equals(castOther.getF04FeUsuaModi())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnhbf03Servicio() == null ? 0 : this.getBnhbf03Servicio()
						.hashCode());
		result = 37
				* result
				+ (getBnhbf02Cuenta() == null ? 0 : this.getBnhbf02Cuenta()
						.hashCode());
		result = 37 * result
				+ (getF04Estdo() == null ? 0 : this.getF04Estdo().hashCode());
		result = 37
				* result
				+ (getF04IdUsuaCrea() == null ? 0 : this.getF04IdUsuaCrea()
						.hashCode());
		result = 37
				* result
				+ (getF04FeUsuaCrea() == null ? 0 : this.getF04FeUsuaCrea()
						.hashCode());
		result = 37
				* result
				+ (getF04IdUsuaModi() == null ? 0 : this.getF04IdUsuaModi()
						.hashCode());
		result = 37
				* result
				+ (getF04FeUsuaModi() == null ? 0 : this.getF04FeUsuaModi()
						.hashCode());
		return result;
	}

}